import request from '@/utils/request'

export function addMessage(data) {
  return request({
    url: '/messages/create',
    method: 'post',
    data
  })
}

export function getMessages(data) {
  return request({
    url: '/messages/content',
    method: 'get',
    params: data
  })
}

export function getMsgInfo(data) {
  return request({
    url: '/messages/infolist',
    method: 'get',
    params: data
  })
}
